package controllers

import (
	beego "github.com/beego/beego/v2/server/web"
)

type GooddetailController struct {
	beego.Controller
}

func (c *GooddetailController) Get() {
	username := c.GetSession("username")
	if username == nil {
		c.Redirect("/", 302)
	}
	goodId := c.GetString("goodId")
	c.Data["goodId"] = goodId
	c.TplName = "gooddetail.tpl"
}
